import pdfplumber

# 打开 pdf 文件
with pdfplumber.open('data/白话机器学习算法.pdf') as f:
    for v in f.pages:
        print(v.page_number, v.extract_text(), end='\n')
